When creating a widget path, use the widget type
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 May 2016 17:41:05 +0000 (13:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 May 2016 17:42:54 +0000 (13:42 -0400)
No need to pull the type out of the css node - its our own type.
This will let us stop setting the type on the css node later on.

gtk/gtkwidget.c

index 6fde52e92fcce5777d6338082575c59ab1955efa..dc566a1b9ee01b853ab4f9043b3aa855c8151b91 100644 (file)
@@ -16361,7 +16361,7 @@ gtk_widget_path_append_for_widget (GtkWidgetPath *path,
   g_return_val_if_fail (path != NULL, 0);
   g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
 
-  pos = gtk_widget_path_append_type (path, gtk_css_node_get_widget_type (widget->priv->cssnode));
+  pos = gtk_widget_path_append_type (path, G_OBJECT_TYPE (widget));
   gtk_widget_path_iter_set_object_name (path, pos, gtk_css_node_get_name (widget->priv->cssnode));
 
   if (widget->priv->name)